//
//  WZPThemeVideo.m
//  WZPItem
//
//  Created by 王王喆平 on 16/7/14.
//  Copyright © 2016年 UI. All rights reserved.
//

#import "WZPThemeVideo.h"
#import <UIImageView+WebCache.h>
#import "WZPThemeItem.h"
@interface WZPThemeVideo ()
@property (weak, nonatomic) IBOutlet UIImageView *pictureView;
@property (weak, nonatomic) IBOutlet UILabel *playTime;
@property (weak, nonatomic) IBOutlet UILabel *timer;

@end

@implementation WZPThemeVideo

-(void)setItem:(WZPThemeItem *)item{
    
    [super setItem:item];
    
    [_pictureView sd_setImageWithURL:[NSURL URLWithString:item.image0]];
    _playTime.text = [NSString stringWithFormat:@"%@播放",item.playcount];
    NSInteger minute = item.videotime / 60;
    NSInteger seace = item.videotime % 60;
    _timer.text = [NSString stringWithFormat:@"%02ld:%02ld",minute,seace];



}

@end
